package csel.model.items;

import csel.model.entity.Entity;
import csel.model.entity.Character;

public abstract class Potion extends UseableItem
{
	private static final long serialVersionUID = 6L;

	private int damage = -10;

	public Potion(String name, String description, int flexPrice, String typeId)
	{
		super(name, description, flexPrice, typeId); //TODO
	}

	//calls e.damage with negative damage hopefully to heal life?
	public boolean use(Entity e)
	{
		if(e instanceof Character)
		{
			return(use((Character) e));
		}
		else
		{
			return(true);
		}
	}
	public abstract boolean use(Character c);
}
